package com.xquant.transaction_management_system.model.PO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xquant.transaction_management_system.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "Transaction")
@TableName("transaction")
public class Transaction extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "交易账户")
    @TableField("transaction_account")
    private String transactionAccount;

    @ApiModelProperty(value = "证券代码")
    @TableField("debenture_code")
    private String debentureCode;

    @ApiModelProperty(value = "数量")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "交易时间")
    @TableField("transaction_date")
    private String transactionDate;

    @ApiModelProperty(value = "交易方向")
    @TableField("transaction_direction")
    private Integer transactionDirection;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "结算金额")
    @TableField("settlement_amount")
    private BigDecimal settlementAmount;

    @ApiModelProperty(value = "总估价")
    @TableField("total_valuation")
    private BigDecimal totalValuation;

    @ApiModelProperty(value = "真实偏离度")
    @TableField("real_deviation")
    private Double realDeviation;

    @ApiModelProperty(value = "债券名称")
    @TableField("debenture_name")
    private String debentureName;
}
